package com.erlang4j.api.adapters;

import com.erlang4j.internal.messages.IMessageHandler;

/**
 * <p>
 * This, or SwingMessageAdapter, is the class that you will normally extend when writing IMessageHandlers
 * </p>
 * 
 * @author Phil Rice
 */
public abstract class MessageAdapter implements IMessageHandler {

	private final String pattern;

	public MessageAdapter(String pattern) {
		this.pattern = pattern;
	}

	@Override
	public String pattern() {
		return pattern;
	}

}
